package cn.songit.service;

import cn.songit.entity.Demo;
import cn.songit.repository.DemoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service("demoService")
public class DemoService {
    @Autowired
    private DemoRepository demoRepository;

    @Transactional
    public void  save(Demo demo){
        demoRepository.save(demo);
    }
}
